refactor bdys