small performance fixes