changed name of output file
fixed issue that would make these not work for 511 or 512