separate chmod method