created a few functions in nabijs