Main replacment