synctimeforSOPID made it as global variable