got rid of some warnings at compile time