updated code to skip xticks