moved function to correct file
sync