throw an error if parameter show isn't 0,1 or 2