refactored format and depentend code to new settings style