push details, main, select statement