working version of bot