add support for nested procedure constant