added method calculate force