added query for diameter