reduce code on prep sync