reduce call overhead time and bugged code