box code and some changes to ruskocollisions