added functions for tiles