removed redundant functions for turning into stream