started working on sep logic