add utility function for checkbox