updated readParameters