integrating items into split function