removed isset statement and fixed field name