improved parser, used implode