clean up scala