removed unused funciton isPresent
typos