helper functions for accessing variables