added NEW and constructor type checking