clean up divider logic