udpated setupnewbox