changed paramaters to use hjd for phot output