instanceof becoming an issue