added comments for methods