fiddled with corners algo