got rid of these 3 warning during compilation