added checkerboard texture
refactoring