testing and improving parse method