prepared for use with smarty