changes to skysubtraction implemented