fixed bug where leaving out the 'n' parameter screwed things up