fixing typedef error