remove boolean flags for corners - remove unused code