code cleaning: rename appsPath variable and function name