added preliminary scale function, special units classes pending