sync old code