added code for 10 and 14