added old scalatron code