copied over stuff from tutorial