removing path where not required