fixed formatting bug with registering