changed wres to output, added memory module