oops... had if check reversed