complete last of alter() and modify() function