amended a+x for +x in chmod