replaced an end