fixed more bugs with examples