properly converting status to integer