doing this scala thing