added sink  input synchronization functions