scala upper code added