changed scorepersp()