created first write out if variables exist in URL

created first write out if variables exist in URL