most functionality is done need queries"
full procedure without db queries