improved: get parameters