add check babai function