adding Type computation listener