fixed construcotr type injection