updated replace for test