added capture to shape