trying to fix a typedef error