added additional rendering functionality