got rid of the stream function