simplyfying scala variable calls