adding code for status update