Clean up unnecessary use of use of apply