got the if part working
well... wrote it anyway