random scala stuff