Removing previous code and creating new