fixing some compiler issues