fixed intrinic size calculation to return correctly