started shortening functions to avoid as much variable creation as possible