transfer parameter computing to screen.js