added modify function