trying to make registration work