made newtype into inline code