works, but does things shit... need to use a units object instead