got proper x,y,z scaling to work
deleted old debug code