only pass parameters from window, dont write