added n guard