support head and tail built in functions
merging now