the offsets needs to be updated, it doesn't work well in some cases