who gets the patent first?