logging removed for better performance