change of the code - adding partial and full functions