add comments
add code for corner support