move repeatable code into globally available functions