added wr status check