# 2a: unit logic