getStatus method modified