my first piece of code ever, so ugly...