implemented typescheme sameas