bug fixed divide function.