moving chmod to top