adding parser function and sample fact