created first, second variables to clean up code