error conflicting types for function