core engine for plaining mile