use of methods instead of key access