end syntax fix