removed undefined issue