added code to mark_euler