put main at the bottom