divide & clean up functions
(TODO: character encoding issue)