function to remove bar checks

todo: function to add bar checks