new way of parsing but doesnt work