small changes to singles calculation