change name of scalar product function to main standard