beautiful working solution for checking marks options