should use "isinstance" function