minor update to singular function