remove unwanted units
refactor position logic into unit base