reduced lines of code