method parsing completely working