changed intent def