do some modification for two methods main and panel pelota