removing scala templates