expand path method added