small fix to use delegate