formating of session status