fixed duplicate typedef