make it possible that count > photo.length