replaced apply() with call() to reduce boilerplate a little. #329