Both scripts appear to be doing what they are supposed to do.