added buggy behavior in for demo