fix: following -> preceding
add custom named function input option