renamed method back to type