pushing apply into score functions so that matrix can be passed to score