checking instance delcaration