some code for bot