added parameters for cylinder and sphere