clipping now checked against all boundaries