fixed drift code