added smooth acceleration for ports 1-4