works (more or less) n <= 30 px