margin restrictions, cleanup