bug removed to create directory