combinedcode seems to work now. added prototype pic