box object not fully working