divide functions. improve error message