optimize handle process