function add constant