fixed nested entry for photos, now working on syntax error