fixing bug
using correct rmdir