employed more glib function to for parsing