further update in function for second submission