add offset to the class