express as functions as vals instead of defs