adding in query string splitter function