repairing getEasyPart function