added $photo var