changed field to var in class