added method to check if status is 0