refactor _.x to toplevel functions
more _.x