functions deleting was implemented