attempts at further optimizaitons