added code to do daophot