added minimun scalar product