update port shape