working on sync command
calling it