working with fits output