use dict:dict/0 or dict:dict/2 instead of dict type