basic register now works