fixed usage of deprecated DAL method