changed to use tiles framework