add constant function