replaced first line of code