-add temp function for pore connection