stopped execution if no checkbox checked