move ifdef to appropriate place