correctly work with multiple params