changed function names to better reflect what they do