added map code into directive