added logic in nusbot