fixed isset funcitons