try dirname()