changed add_this code