better implementation of xtick labels