removing warnings

fixed render method