updated session schema and added bonus function