added logistoc, fixed manor errors