removed some compiler warning because of wrong types