fixed private method error