shorter version of const() call error