created if statement, now logs other, but not value