*changed structure
*implemented select request