added rendering function