replace whole definition