triying to resolve no render bug