creating dividerMagic function set, with all math contained