check if create or update then print the correct value