changed method visibility and logger to static