clean up size checks