solving chmod problem