updated parameters and added coord