first steps in division function