the reason behind adding an x at the end is unknown