no more need to test if value is equal to 1 or 0 same above