divide by 2 method