add funct. score