scalar selection works. removed format handler and associated codes.