re-adding tile input code