Add function to get closed resolution

just for email.. Once I test this, also add to ip