fixes undefiend method error