return result from dot product function 'dot'