fixed to os x warnings