added code for 514 problem