added comments resorted methods