register is prety much working