fix code to avoid more than 100