changes status to integer