removing scala warnings