This depends on your written contract. Bring the contract to a local contract lawyer.
This answer is for informational purposes only and is not legal advice regarding your question and does not establish an attorney-client relationship.
The answer will depend upon the agreement you signed, or the verbal agreement you formed. Feel free to contact me to discuss this.
This response does not constitute legal advice and does not create an attorney-client relationship.