up scala version
simplify
take elements