fixed divide process, still needs merge to work