added directory method