code crashes

#7