changed laswp direction parameter to int_t