made it more efficient