makes replace global