fix double definition error