add a comment
removed inplace restict, changed it to a copying subset