if and func work completely. the only thing left to do is parse / print strings properly