working smarty block now