inputline made local
changing to private and static