switched from top to bottom