directive with correct variables