updated code and params