trying to automate the lines