use let instead of defining a method for virtual attributes