checking to see if it works without reading to file