adding register function