Fixing the broken code

implementing animation and values customization