changed select to have 5 arguments insterad of one string