using functions for readability