probably should use the logic statement intended