refactoring - added function to get paths
changed function names to make them more readable