adding new funtion and directory