add at score function