solved bug with code and powerunit