change logic for status and get current status