edited stackAPI var