added a quick type checker