changed the vars to methods