changed type signature on select command and updated attribute and type classes