fixing diff periods