stupid error with end