cleared render() function abit