parses complete select