adapted bar to new getset function