fixing issue with blank pairs