replaced alias sf with function sf