set collision handler and boundary