change function to eval constant