abstracted rendering objects to a function call