typo fix and supress nasty output from apply