added comments for the partition method