fixed insert before and after