minor changes to remove warnings in idea