score func: little changes