change formatOffset method to public visibility