working version for flickr