recommendation works with stored procedure, all function works