update in function for second submission