bug with adding definitions