seperate layout from physics