implement status check