created a little register function to register all items provided as arugments