fix after lecture 3