code tidy, path is moved inside brace