change status with if statement

fixes #3