removed all warnings in the code