added animation speed setting