functions deleting fixes