init var properly, fix a typo