made spyder example better