working on intent bug