started adding maths inside replacements