added (commented out) code for rectangle animation