added closure to protect $ alias