added SYNC funcionality