some make up on bootstrap func