weird complicated statement to just make an isinstance