directory creation code added