converted two compares to strings because if $quietmode was not defined it throwed an error.