debug
currect null error
add delete function