fixing unless condition