discovered bug with using methods instead of instance variables