fix to inheriting type fixes issues