updated function
added point spread function