**NEEDS REVIEW***5 passed

made chnages to  the lowstaisfying entry logic