added animation code
added record key